package com.gdut.simple.model.impl;

import com.gdut.simple.common.RequestCallback;
import com.gdut.simple.data.entity.News;
import com.gdut.simple.data.remote.RemoteRepository;
import com.gdut.simple.data.remote.http.service.impl.HotPickApiService;
import com.gdut.simple.model.IHotPickModel;

import java.util.List;

public class HotPickModel implements IHotPickModel {

    @Override
    public void refresh(int num, RequestCallback<List<News>> callback) {
        RemoteRepository.getHotPicks(num, 1, callback);
    }

    @Override
    public void loadMore(int num, int page, RequestCallback<List<News>> callback) {
        RemoteRepository.getHotPicks(num, page, callback);
    }
}
